<%@ page pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%><%@ taglib
	uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>


<jsp:include page="../common/top.jsp"></jsp:include>
<jsp:include page="../common/leftmenu.jsp"></jsp:include>

<div class="fr" style="width: 780px">
	<div class="box_title">
		<i class="fa fa-table"></i>${model.title }【${model.code}】审批
	</div>
	<div data-role="content" class="ui-content" role="main">
		<div style="display: none">
			<input type="hidden" name="id" value="${id }">
		</div>
		<jsp:include page="basicInfo.jsp"></jsp:include>

		<table class="form-table">

			<tr>
				<td class="td1"><label for="textarea">描述：</label>
				</td>
				<td class="td2" colspan="3">${model.description }</td>
			</tr>
			<tr>
				<td class="td1"><label>附件：</label>
				</td>
				<td class="td2" colspan="3"><c:forEach items="${uploadFiles }"
						var="file">
						<div class="small-title">
							<a target="_blank" href="${file.path }">${file.name }</a>(大小：${file.size/1000}KB)
						</div>
					</c:forEach></td>
			</tr>
			<tr>
				<td class="td1"><label>处理过程：</label>
				</td>
				<td class="td2" colspan="3"><isperp:processTrace
						processId="${model.processId }"></isperp:processTrace></td>
			</tr>
			<form:form commandName="model" cssClass="validate"
				id="newIncidentForm" action="customer/help/incident/save"
				method="post">
				<tr>
					<td class="td1"><label>审批意见：</label>
					</td>
					<td class="td2" colspan="3"><textarea rows="3"
							style="width:90%" name="suggestion" id="suggestion"></textarea></td>
				</tr>
				<tr>
					<td class="td2" colspan="4" style="padding:10px;"><input
						type="hidden" name="id" value="${model.id }"> <jsp:include
							page="../common/processBtn.jsp"></jsp:include></td>

				</tr>
			</form:form>
		</table>

		<script type="text/javascript">
			function submitStart(obj) {
				$("#newIncidentForm").submit();
				return true;

			}
		</script>
	</div>
</div>
<jsp:include page="../common/bottom.jsp"></jsp:include>
